package hb.software.role.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import hb.software.role.category.RoleCategory;
import hb.software.service.role.RoleCategoryManager;
import edu.zut.hb.software.base.web.GenericTreeController;

@RestController
@RequestMapping("/rolecategory")
public class RoleCategoryController extends GenericTreeController<RoleCategory, Long, RoleCategoryManager> {

	RoleCategoryManager roleCategoryManager;

	@Autowired
	public void setRoleCategoryManager(RoleCategoryManager roleCategoryManager) {
		this.roleCategoryManager = roleCategoryManager;
		this.manager = this.roleCategoryManager;
		this.treeManager = this.roleCategoryManager;

	}
}
